<template>
  <simple-layout title="我的身份">
<!--    <div class="indo-title">-->
<!--      <span class="icon">-->
<!--        <img src="../../assets/mine/Icon／Navbar_back.png" alt />-->
<!--      </span>-->
<!--      <span>我的身份</span>-->
<!--    </div>-->
    <div class="indo-header">
      <span class="header">
        <img class="user-icon" :src="userInfo.headIcon" alt />
      </span>
      <span>{{userInfo.nickName}}</span>
      <span class="edit">
        <img src="../../assets/mine/bianji.png" alt />
      </span>
    </div>
    <div class="lists">
      <a href="/#/mine/update-real-info">
      <div class="list">
        <div class="list-content">
          <img src="../../assets/mine/shimingrenzheng.png" alt />
          <span class="li">实名信息</span>
        </div>
        <div class="list-flag">
          <img src="../../assets/mine/Icon／Public／ic_arrow_grey Copy 3.png" alt />
        </div>
      </div>
      </a>
      <a href="/#/reset-pwd">
        <div class="list">
          <div class="list-content">
            <img src="../../assets/mine/denglu.png" alt />
            <span class="li">修改登录密码</span>
          </div>
          <div class="list-flag">
            <img src="../../assets/mine/Icon／Public／ic_arrow_grey Copy 3.png" alt />
          </div>
        </div>
      </a>
      <a href="/#/reset-pay-pwd">
      <div class="list">
        <div class="list-content">
          <img src="../../assets/mine/zhifu.png" alt />
          <span class="li">修改支付密码</span>
        </div>
        <div class="list-flag">
          <img src="../../assets/mine/Icon／Public／ic_arrow_grey Copy 3.png" alt />
        </div>
      </div>
      </a>
    </div>

    <div>
      <van-button type="default" @click="logout()">退出登录</van-button>
    </div>
  </simple-layout>
</template>


<script>
import SimpleLayout from "../../components/SimpleLayout";

export default {
  name: "Login",
  components: {
    //someComponent
    SimpleLayout
  },
  props: {},
  data() {
    return {
      msg: "Hello Vue.js",
      userInfo: JSON.parse(this.$cookie.get('user'))
    };
  },
  computed: {},
  watch: {},
  mounted: function() {},
  methods: {
    logout(){
      this.$cookie.set('token', null);
      this.$cookie.set('user', null);
      this.$router.push( '/login' );
    }
  }
};
</script>


<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>

.indo-title {
  width: 100vw;
  height: 40px;
  display: flex;
  align-items: center;
  background-color: #fff;
  font-weight: bold;
  border-bottom: 1px solid rgba(153, 153, 153, 0.5);
}
.icon {
  width: 10%;
}

.user-icon{
  width: 80px;
  height: 80px;
  border-radius: 50%;
}

.icon + span {
  width: 90%;
  margin-left: -5%;
}

.indo-header {
  display: flex;
  align-items: center;
  padding-left: 20px;
  background-color: #fff;
  height: 120px;
  color: #000;
}

.header {
  margin-right: 20px;
}
.edit {
  margin-left: 10px;
}

.lists {
  margin-top: 20px;
  background-color: #fff;
  color: #000;
}

.lists a{
  color: #333;
}

.list {
  /*border-bottom: 1px solid rgba(153, 153, 153, 0.5);*/
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 10px 20px 20px;
}

div.list:last-child {
  border-bottom: none;
}

.list-content {
  display: flex;
  align-items: center;
}

.li {
  margin-left: 15px;
}

button {
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 13%;
  width: 80%;
  border-radius: 30px;
  background: -webkit-linear-gradient(to right, #696BE2, #7B7FEE, #8E93F9); /* Safari 5.1 - 6.0 */
  background: -moz-linear-gradient(to right, #696BE2, #7B7FEE, #8E93F9); /* Firefox 3.6 - 15 */
  background: linear-gradient(to right, #696BE2, #7B7FEE, #8E93F9); /* 标准的语法 */
  color: #fff;
  height: 52px;
  font-size: 18px;
}
</style>
